﻿using System;
using System.Runtime.Serialization;

namespace HHMMS.WorkFlow.Model
{
	/// <summary>
	/// 工作流任务项实体。
	/// </summary>
	public class WorkflowItem
	{
		/// <summary>
		/// 任务编号ID
		/// </summary>
		public int? TaskId{ get; set;}

		/// <summary>
		/// 所属工作流实例ID
		/// </summary>
		public string InstanceId{ get; set;}

		/// <summary>
		/// 任务名称
		/// </summary>
		public string TaskName{ get; set;}

		/// <summary>
		/// 所属流程ID
		/// </summary>
		public int? WorkflowId{ get; set;}

		/// <summary>
		/// 所属活动ID
		/// </summary>
		public int? ActivityId{ get; set;}

		/// <summary>
		/// 传阅者任务ID
		/// </summary>
		public int? PasserTaskId{ get; set;}

		/// <summary>
		/// 传阅者ID
		/// </summary>
		public string PasserId{ get; set;}

		/// <summary>
		/// 传阅者名称
		/// </summary>
		public string PasserName{ get; set;}

		/// <summary>
		/// 参与者ID
		/// </summary>
		public string PartId{ get; set;}

		/// <summary>
		/// 参与者名称
		/// </summary>
		public string PartName{ get; set;}

		/// <summary>
		/// 参与者部门ID
		/// </summary>
		public string PartDeptId{ get; set;}

		/// <summary>
		/// 参与者部门名称
		/// </summary>
		public string PartDeptName{ get; set;}

		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime? CreateTime{ get; set;}

		/// <summary>
		/// 阅读时间
		/// </summary>
		public DateTime? ReadTime{ get; set;}

		/// <summary>
		/// 处理时间
		/// </summary>
		public DateTime? FinishTime{ get; set;}

		/// <summary>
        /// 任务状态：0：待处理 1：已阅读 2：已处理
		/// </summary>
		public int? WorkItemStatus{ get; set;}

		/// <summary>
		/// 审批结果
		/// </summary>
		public string PartChoice{ get; set;}

		/// <summary>
		/// 审批意见
		/// </summary>
		public string PartComment{ get; set;}

	}
}